<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<script type="text/javascript" language="javascript" src="./js/AnyChart.js"></script>
		<title>Set data from JSON</title>
	</head>
	<body>
		<div id="container"></div>
		<script type="text/javascript" language="javascript">
			var chart = new AnyChart("./swf/AnyChart.swf");
			
			var JSONData = {
				"charts": {
					"chart": {
						"chart_settings": {
							"title": {
								"text": "Simple Chart"
							}
						},
						"data": {
							"series": [
								{
									"point": [
										{"name": "Jan", "y": 21},
										{"name": "Feb", "y": 23},
										{"name": "Mar", "y": 31},
										{"name": "Apr", "y": 34},
										{"name": "May", "y": 45}
									]
								}
							]
						}
					}
				}
			};
			
			chart.setJSData(JSONData);
			chart.write("container");
		</script>
	</body>
</html>